<template>
<div class="form-footer">
    <el-button @click="$emit('cancel')">取消</el-button>
    <el-button type="primary" @click="$emit('submit')">保存</el-button>
</div>
</template>

<script setup>
    defineEmits(['submit', 'cancel'])

</script>

<style scoped>
    .form-footer {
        text-align: right;
        padding-top: 8px;
    }
</style>